package com.yuelao.yuelao_backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 挖矿奖励领取记录表
 */
@Data
@TableName("mining_claim_records")
public class MiningClaimRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 质押ID
     */
    private Long stakingId;

    /**
     * 矿池ID
     */
    private Long poolId;

    /**
     * 奖励数量
     */
    private BigDecimal rewardAmount;

    /**
     * 额外奖励
     */
    private BigDecimal bonusAmount;

    /**
     * 交易ID
     */
    private String transactionId;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;
}

